package com.jjpro.requestservice;

import com.jjpro.entity.lock.*;
import com.jjpro.utils.AppletResult;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("EhomeLock")
public interface LockRequestService {

    @RequestMapping(value = "/lock/get/lockInfo")
    AppletResult getLockInfoRequest(@RequestBody GetLockInfoRequest getLockInfoRequest);

    @RequestMapping(value = "/lock/binding/lock")
    AppletResult bindingLock(@RequestBody BindingLockRequest bindingLockRequest);

    @RequestMapping(value = "/lock/get/lockInfos")
    AppletResult getLockInfos(@RequestBody GetLockInfosRequest getLockInfosRequest);

    @RequestMapping(value = "/lock/rename/lock")
    AppletResult renameLock(@RequestBody RenameLockRequest renameLockRequest);

    @RequestMapping(value = "/lock/remove/lock")
    AppletResult removeLock(@RequestBody RemoveLockRequest removeLockRequest);
}
